package com.zrb.mobile;

import java.util.ArrayList;
import java.util.List;

import com.zrb.mobile.adapter.ProjectListchkAdapter;
import com.zrb.mobile.adapter.model.UserInfoDto;
import com.zrb.mobile.ui.ClearEditText;
import com.zrb.mobile.ui.ClearlinesEditText;
import com.zrb.mobile.ui.QMToggleView;
import com.zrb.mobile.utility.CommonUtil;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.CompoundButton.OnCheckedChangeListener;

public class User_projectnew_Activity  extends BaseActivity implements OnClickListener{

	private String mtitle;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
 
		setContentView(R.layout.u_center_projectnew);
		//mUrl = this.getIntent().getStringExtra("url");
		mtitle = this.getIntent().getStringExtra("title");
	   initView();
		//this.findViewById(R.id.project_container).setOnClickListener(this);
		//this.findViewById(R.id.login_icon).setOnClickListener(this);

	}
	
	ClearEditText tmptext;
	
	private void initView() {
		this.findViewById(R.id.topbar_left).setOnClickListener(this);
		this.findViewById(R.id.new_btn).setOnClickListener(this);
		
      	TextView	top_title = (TextView) this.findViewById(R.id.tv_top_title);
		top_title.setText(mtitle);
		
		 tmptext=	(ClearEditText)findViewById(R.id.test_project1);
		//tmptext.setTilteRid(R.string.project_title);
 	 
		
		ClearEditText tmptext2=	(ClearEditText)findViewById(R.id.test_project2);
		tmptext2.setTitle("adfasdf");
		
		
		ClearlinesEditText tmptext3=	(ClearlinesEditText)findViewById(R.id.test_multproject1);
		tmptext3.setTilteRid(R.string.project_advantage);
		tmptext3.setInputHeight(80);
		
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch(v.getId())
		{
		   case R.id.topbar_left:
 			   this.finish();
			break;
	 
		   case R.id.new_btn:
       	      CommonUtil.showToast(tmptext.getContentValue()+"",this );
               break;
		
		}
	}
}
